// 环境设备信息模块
const store = {
	state: {
		systemInfo: {}
    },
    getters: {
        // 状态栏
        statusBar(state) {
            return state.systemInfo.statusBarHeight
        },
        // 状态栏+topBar高度
        customBar(state) {
            return (state.systemInfo.statusBarHeight + 44) || 77
        }
    },
	mutations: {
        // 设置环境信息
        SET_SYSTEM_INFO(state, data) {
            state.systemInfo = data
        }
	}
}

export default store